import request from '@/utils/request'
// 人员搜索
export const getPerson = pageIndex => request.get('/api/user-service/user/search', {
  params: {
    pageSize: 10,
    pageIndex
  }
})
// 获取完整人员列表
export const getHolePerson = () => request.get('/api/user-service/user/search', {
  params: {
    pageSize: 10000
  }
})
// 删除人员
export const delPerson = id => request.delete(`/api/user-service/user/${id}`)
// 获取角色列表
export const getRole = () => request.get('/api/user-service/role')
// 获取区域列表
export const getRegion = () => request.get('/api/vm-service/region/search', {
  params: {
    pageSize: 10000
  }
})
// 获取人员工作量列表
export const getWork = pageIndex => request.get('/api/user-service/user/searchUserWork', {
  params: {
    pageSize: 10,
    pageIndex
  }
})
// 获取完整工作量
export const getHoleWork = () => request.get('/api/user-service/user/searchUserWork', {
  params: {
    pageSize: 10000
  }
})
